From b13db4d37c8dc948ad9ea085f9c2d12491de1a78 Mon Sep 17 00:00:00 2001 From: "J.D. Smith" Date: Mon, 27 Nov 2006 18:07:55 +0000 Subject: [PATCH] (hs-already-hidden-p): Move to end of line so hidden blocks will be correctly identified. --- lisp/progmodes/hideshow.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index e7ed67ce61c..e50a9a4dda6 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -706,6 +706,7 @@ and `case-fold-search' are both t." (if (and c-reg (nth 0 c-reg)) ;; point is inside a comment, and that comment is hidable (goto-char (nth 0 c-reg)) + (end-of-line) (when (and (not c-reg) (hs-find-block-beginning) (looking-at hs-block-start-regexp)) -- 2.30.2